package com.shoulei.designpattern.decoratorPattern;

/**
 * @ClassName:DecoratorPatternDemo
 * @Descrition:
 * @Author:shoulei
 * @Date:2019/4/14 14:46
 * @Verson:
 */
public class DecoratorPatternDemo {
    public static void main(String[] args) {
        Shape circle = new Circle();

        Shape redCircle = new RedShapeDecorator(new Circle());

        Shape redRectangle = new RedShapeDecorator(new Rectangle());
        circle.draw();
        redCircle.draw();
        redRectangle.draw();
    }
}
